<%@ page import="databeans.*"%>
<%
	Employee employee = (Employee)session.getAttribute("employee");
	String employeeUsername = employee.getUsername();
	String employeeFirstName = employee.getFirstName();
	String employeeLastName = employee.getLastName();
%>
<jsp:include page="../common/header.jsp" />

<title>Carnegie Financial Services - View Funds</title>

<script type="text/javascript">
	$(document).ready(function() { 
		$('#colorize_1').colorize({ hoverColor:'none', ignoreHeaders :true, hiliteColor :'none' });
	});
</script>

</head>
<body>
	<div id="container">
    	<div id="header">
        	<h2>Carnegie Financial Services</h2>
    		<jsp:include page="../common/top-menu.jsp" />
      </div>
        <div id="wrapper">
            <div id="content">
				<div id="box">
						<h3>Fund Summary</h3> 
						<table id="colorize_1">
							<thead>
								<tr>
									<th>Symbol</th>
	                            	<th>Fund Name</th>
	                                <!-- <th>Actions</th>  -->
	                            </tr>
							</thead>
							<tbody>
							<%
							Fund [] fundsList = new Fund[0];
							if (request.getAttribute("fundsList") != null){
							    //activeItems = (ItemType[])request.getAttribute("activeItems");
							    fundsList = (Fund[])request.getAttribute("fundsList");
							}
							
							Customer tempCustomer = null;
							
							for (int i = 0; i < fundsList.length; i++) {
							    Fund tempFund = fundsList[i];
							
							%>
								<tr>
									<td><%= tempFund.getSymbol() %></td>
	                            	<td><a href="#"><%= tempFund.getName() %></a></td>
	                                <!-- <td>
	                                	<a href="deposit-check.html" id="deposit-check"><img src="view/img/icons/chart_bar.png" title="View Performance Graph" alt="View Performance Graph"/></a>
	                                	<a href="#" id="view-acc"><img src="view/img/icons/money_dollar.png" title="Create a Transition Day" alt="Create a Transition Day"/></a>
	                                </td>
	                                 -->
	                            </tr>
	                         <%
						
								}
							
							%>
							</tbody>
						</table>
            </div>
            <div class="padding"><br/> &nbsp;</div>
            <div id="box">
            	<h3>Create a New Fund</h3>
                <form id="form" action="employeeCreateFund.do" method="post">
                <jsp:include page="../common/messages.jsp"/>
                  <fieldset id="personal">
                    <legend style="width: 254px; height: 20px"> FUND INFO </legend>
                    <label for="txtFundName">Fund Name : </label> 
                    <input name="txtFundName" id="txtFundName" type="text" tabindex="1" autocomplete="off" value="${txtFundName}"/>
                    <br />
                    <label for="txtFundSymbol">Ticker : </label>
                    <input name="txtFundSymbol" id="txtFundSymbol" type="text" tabindex="2" autocomplete="off" value="${txtFundSymbol}"/>
                    <br />
                    <label for="txtFundPrice">Initial Price : </label>
                    <input name="txtFundPrice" id="txtFundPrice" type="text" tabindex="2" autocomplete="off" value="${txtFundPrice}"/>
                    <br />
                  </fieldset>
                  <div align="center">
                  <input name="Submit" id="button1" type="submit" value="Create the Fund" tabindex="3" />&nbsp;
                  </div>
                </form>
            </div>
          </div>
            <jsp:include page="../common/sidebar.jsp" />
      </div>
        <jsp:include page="../common/footer.jsp" />
</div>
</body>
</html>
